/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package commonClasses.Messages;

import commonClasses.*;
import commonClasses.commonInterfaces.MsgIntf;
import java.io.DataOutputStream;
import commonClasses.commonInterfaces.ProtocolIntf;

/**
 *
 * @author MGL
 */
public class ListMsg extends Msg implements MsgIntf{


    public void receive() {
        //nic nie robi.
    }
    

    public void send() throws Exception{

        DataOutputStream dos = this.getProtocol().getDOS();

        int arr[] = this.idToIntArr();
        for(int i=0; i<arr.length; i++){
              dos.writeByte(arr[i]);
        }
    }

    public ListMsg(ProtocolIntf protocol) {
        super(protocol, MagicNumbers.LIST_MSG_NR);
    }



}
